﻿//-------------------- 测试程序-----------------------
#include <opencv2/opencv.hpp>
using namespace cv;
//-----------------------------------------------------------------------------------------------
int main()

{
	VideoCapture capture;
	capture.open("D:/lenovo/Videos/EV_Video/懒羊羊.mp4");

	while (1)
	{
		Mat frame;
		capture >> frame;
		if (frame.empty())
		{
			break;
		}
		imshow("video", frame);
		waitKey(30);
	}
	capture.release();
	destroyAllWindows();

	waitKey(0);
	return 0;
}